// ${desc}
message ${service?cap_first}Request {
    oneof check_czr {
        int32 czr = 1; // 操作人
    }
<#list paramsMap?keys as key>
    <#if paramsMap[key].fieldType == "string">
    string ${key?replace("_","")} = ${key_index + 2}; // ${paramsMap[key].fieldDesc}
    </#if>
    <#if paramsMap[key].fieldType == "int">
    oneof check_${key?replace("_","")} {
        int32 ${key?replace("_","")} =  ${key_index + 2}; // ${paramsMap[key].fieldDesc}
    }
    </#if>
</#list>
<#if paging == "是">
    oneof check_paging {
        int32 paging = 1001; //是否分页
    }
    oneof check_pageNo {
        int32 pageNo = 1002; // 页码
    }
    oneof check_pageSize {
        int32 pageSize = 1003; // 页长
    }
</#if>
}
message ${service?cap_first}Response{
<#if responseType == "json_string">
    string result = 1; // 返回消息
</#if>
<#if responseType == "response">
    int32 code = 1; // 消息码
    string note = 2; // 消息内容
    repeated ${service?cap_first}Record records = 3; // 结果集
    <#if paging == "是">
    int64 total = 4;
    </#if>
</#if>
}

<#if responseType == "response">
message ${service?cap_first}Record {
<#list responseParamsMap?keys as key>
    string ${key} = ${key_index + 1}; // ${responseParamsMap[key].fieldDesc}
</#list>
}
</#if>

//${desc}
rpc ${service?cap_first}(${service?cap_first}Request) returns(${service?cap_first}Response);
